<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery.min.js"></script>
</head>

<body>

    <script>
        var todolist = [{
            title: "我现在在学jq",
            done: false
        }, {
            title: "我今天要上数据库",
            done: false
        }];
        localStorage.setItem("todo", JSON.stringify(todolist));
        var data = localStorage.getItem("todo");
        data = JSON.parse(data);
        console.log(data);
    </script>
</body>

</html>